package com.ljq.serviceverificationcode.controller;

import com.ljq.intemalcommon.dto.ResponseResult;
import com.ljq.serviceverificationcode.service.VerificodeCationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/numberCode")
public class NumberCodeController {

    @Autowired
    private VerificodeCationService verificodeCationService;

    @GetMapping("/{size}")
    public ResponseResult  numberCode(@PathVariable("size") Integer size){ ;
        return verificodeCationService.numberCode(size);
    }
}
